import Vue from "vue";
// import "@/assets/icons";
// import "@/assets/styles/reset.scss";
import "@/assets/styles/index.scss";
// 常用全局组件挂载
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

import EasyPlayer from '#/EasyPlayer-component.min.js'
import Pagination from "@/components/Pagination";
Vue.component("Pagination", Pagination);
Vue.component('EasyPlayer', EasyPlayer);

import moment from "moment";
Vue.prototype.$moment = moment;

import VideoPlayer from "vue-video-player";
import "video.js/dist/video-js.css";
// import('vue-video-player/node_modules/video.js/dist/video-js.css');
import "vue-video-player/src/custom-theme.css";
Vue.use(VideoPlayer);

// UI组件库
import "./plugins/ChinaTowerUI";
import "./plugins/ElementUi";
import "./plugins/GlobalMethod";
import "./plugins/GlobalStyle";
import "./plugins/GlobalDirectives";

// 挂载请求sdk
import { requestSDK, iframeSDK } from "@ct/iframe-connect-sdk";
Vue.prototype.isCross = true;
localStorage.setItem("isCross", true);
Vue.prototype.$requestSDK = requestSDK;
window.requestSDK = requestSDK;
window.iframeSDK = iframeSDK;
new Vue({
  el: "#app",
  router,
  store,
  beforeCreate() {
    Vue.prototype.$globalEventBus = this;
  },
  render: (h) => h(App),
});
